/*
*   redmicro all Copyright (c)
 *
 * Created by seeker910 on 2018/06/5.
* */

Rsd.define('Rsd.Faith.pages.BankLiLvListPage', {
    extend: 'Rsd.Faith.pages.ListPage',
    requires: ['Rsd.controlEx.ComboBoxEnum'],
    xtype: 'list-bank-lilv',
    "modelType": "BankLiLvModel",
    sort:[{name:'tiaozhengshijian'}],
    "formFields": [
        {
            "name": "YinHangBianHao",
            "label": {
                "width": 80,
                "content": "银行编号"
            },
            "dataIndex": "YinHangBianHao",
            "index": 20,
            "exist": true,
            "xtype": "text",
            "length": 20
        },
        {
            "name": "YinHangMingCheng",
            "label": {
                "width": 80,
                "content": "银行名称"
            },
            "dataIndex": "YinHangMingCheng",
            "index": 22,
            "exist": true,
            "xtype": "text",
            "length": 50
        },
        {
            "name": "TiaoZhengShiJian",
            "label": {
                "width": 80,
                "content": "调整时间"
            },
            "dataIndex": "TiaoZhengShiJian",
            "index": 23,
            "exist": true,
            "xtype": "date",
            "formatString": "yyyy-MM-dd"
        },
        {
            "name": "HuoQiLiLv",
            "label": {
                "width": 80,
                "content": "活期利率"
            },
            "dataIndex": "HuoQiLiLv",
            "index": 24,
            "exist": true,
            "xtype": "number",
            "precision": 3
        },
        {
            "name": "DingQiLiLv_3M",
            "label": {
                "width": 80,
                "content": "三月定期利率"
            },
            "dataIndex": "DingQiLiLv_3M",
            "index": 26,
            "exist": true,
            "xtype": "number",
            "precision": 3
        },
        {
            "name": "DingQiLiLv_6M",
            "label": {
                "width": 80,
                "content": "半年定期利率"
            },
            "dataIndex": "DingQiLiLv_6M",
            "index": 28,
            "exist": true,
            "xtype": "number",
            "precision": 3
        },
        {
            "name": "DingQiLiLv_1Y",
            "label": {
                "width": 80,
                "content": "一年期固定利率"
            },
            "dataIndex": "DingQiLiLv_1Y",
            "index": 30,
            "exist": true,
            "xtype": "number",
            "precision": 3
        },
        {
            "name": "DingQiLiLv_2Y",
            "label": {
                "width": 80,
                "content": "二年定期利率"
            },
            "dataIndex": "DingQiLiLv_2Y",
            "index": 32,
            "exist": true,
            "xtype": "number",
            "precision": 3
        },
        {
            "name": "DingQiLiLv_3Y",
            "label": {
                "width": 80,
                "content": "三年定期利率"
            },
            "dataIndex": "DingQiLiLv_3Y",
            "index": 34,
            "exist": true,
            "xtype": "number",
            "precision": 3
        },
        {
            "name": "DingQiLiLv_5Y",
            "label": {
                "width": 80,
                "content": "五年定期利率"
            },
            "dataIndex": "DingQiLiLv_5Y",
            "index": 36,
            "exist": true,
            "xtype": "number",
            "precision": 3
        },
        {
            "name": "Remark",
            "label": {
                "width": 80,
                "content": "备注"
            },
            "dataIndex": "Remark",
            "index": 200,
            "exist": true,
            "xtype": "text",
            "length": 100
        }
    ],
    "gridColumns":[
        {
            "text": "序号",
            "xtype": "index",
            "width": 40,
            "index": 0,
            "deep": 1
        },
        {
            "name": "YinHangBianHao",
            "dataIndex": "YinHangBianHao",
            "sortable": false,
            "text": "银行编号",
            "index": 20,
            "exist": true,
            "xtype": "string",
            "width": 150,
            "nobr": true,
            "deep": 1
        },
        {
            "name": "YinHangMingCheng",
            "dataIndex": "YinHangMingCheng",
            "sortable": false,
            "text": "银行名称",
            "index": 22,
            "exist": true,
            "xtype": "string",
            "width": 150,
            "nobr": true,
            "deep": 1
        },
        {
            "name": "TiaoZhengShiJian",
            "dataIndex": "TiaoZhengShiJian",
            "sortable": false,
            "text": "调整时间",
            "index": 23,
            "exist": true,
            "xtype": "date",
            "formatString": "yyyy-MM-dd",
            "width": 100,
            "precision": 3,
            "deep": 1
        },
        {
            "name": "HuoQiLiLv",
            "dataIndex": "HuoQiLiLv",
            "sortable": false,
            "text": "活期利率",
            "index": 24,
            "exist": true,
            "xtype": "number",
            style:{color:'rgba(25, 24, 24, 0.76)',fontWeight:'bold',fontSize:'110%'},
            "width": 100,
            "precision": 3,
            "deep": 1
        },
        {
            "name": "DingQiLiLv_3M",
            "dataIndex": "DingQiLiLv_3M",
            "sortable": false,
            "text": "三月定期利率",
            "index": 26,
            "exist": true,
            "xtype": "number",
            "width": 100,
            "precision": 3,
            "deep": 1
        },
        {
            "name": "DingQiLiLv_6M",
            "dataIndex": "DingQiLiLv_6M",
            "sortable": false,
            "text": "半年定期利率",
            "index": 28,
            "exist": true,
            "xtype": "number",
            "width": 100,
            "precision": 3,
            "deep": 1
        },
        {
            "name": "DingQiLiLv_1Y",
            "dataIndex": "DingQiLiLv_1Y",
            "sortable": false,
            "text": "一年期固定利率",
            "index": 30,
            "exist": true,
            "xtype": "number",
            style:{color:'rgba(25, 24, 24, 0.76)',fontWeight:'bold',fontSize:'110%'},
            "width": 100,
            "precision": 3,
            "deep": 1
        },
        {
            "name": "DingQiLiLv_2Y",
            "dataIndex": "DingQiLiLv_2Y",
            "sortable": false,
            "text": "二年定期利率",
            "index": 32,
            "exist": true,
            "xtype": "number",
            "width": 100,
            "precision": 3,
            "deep": 1
        },
        {
            "name": "DingQiLiLv_3Y",
            "dataIndex": "DingQiLiLv_3Y",
            "sortable": false,
            "text": "三年定期利率",
            "index": 34,
            "exist": true,
            "xtype": "number",
            "width": 100,
            "precision": 3,
            "deep": 1
        },
        {
            "name": "DingQiLiLv_5Y",
            "dataIndex": "DingQiLiLv_5Y",
            "sortable": false,
            "text": "五年定期利率",
            "index": 36,
            "exist": true,
            "xtype": "number",
            "width": 100,
            "precision": 3,
            "deep": 1
        },
        {
            "name": "Remark",
            "dataIndex": "Remark",
            "sortable": false,
            "text": "备注",
            "index": 200,
            "exist": true,
            "xtype": "string",
            "width": 150,
            "nobr": true,
            "deep": 1
        }
    ],
    readOnly:false,
    newButtons:[{text:'添加银行账户',handler:'btn_new'}],
    /*
    * */
    constructor: function (config) {
        config = config || {};
        Rsd.apply(this, config);
    },
    btn_new:function btn_new() {
        this.openItem();
    }
});